﻿<Window x:Class="Slider.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <Label Content="This is some sample text" Height="auto" HorizontalAlignment="Left" Margin="46,51,0,0" Name="myLbl" VerticalAlignment="Top" Width="auto" FontSize="{Binding ElementName=mySlider, Path=Value}" Canvas.Left="-34" Canvas.Top="71" />
        <Slider Height="28" HorizontalAlignment="Left" Margin="82,191,0,0" Name="mySlider" VerticalAlignment="Top" Width="337" Orientation="Horizontal" Minimum="10" Maximum="100" />
        <Button Content="Set to larger" Height="23" HorizontalAlignment="Left" Margin="311,252,0,0" Name="toLargeBtn" VerticalAlignment="Top" Width="96" Click="toLargeBtn_Click" />
        <Button Content="Set to smaller" Height="23" HorizontalAlignment="Left" Margin="82,252,0,0" Name="toSmallBtn" VerticalAlignment="Top" Width="97" Click="toSmallBtn_Click" />
    </Grid>
</Window>
